package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.ModifyHisDO;
import com.mhc.suzuki.dal.query.ModifyHisQuery;

import java.util.List;


/**
 * Manager for ModifyHis.
 */
public interface ModifyHisManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ModifyHisQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ModifyHisQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ModifyHisDO record);

    /**
     * insert selective.
     */
    long insertSelective(ModifyHisDO record);

    /**
     * select by query condition.
     */
    List<ModifyHisDO> selectByQuery(ModifyHisQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ModifyHisDO> selectByQueryWithPage(ModifyHisQuery query);

    /**
     * select by primary key.
     */
    ModifyHisDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ModifyHisDO record,  ModifyHisQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ModifyHisDO record, ModifyHisQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ModifyHisDO record);
}